.TH MATF "1" "October 2007" "matf 1.0" "User Commands"
.SH NAME
matf \- calculate power, factorial and absolute value
.SH SYNOPSIS
.B matf
.SH DESCRIPTION
.TP
This program performs three mathematical operations: 
.nf
1.Raising real argument x into natural degree n.
2.Calculating factorial from natural argument x.
3.Calculating absolute value from real argument x.
.fi
.SH USAGE
1.Function 
.B power.
.RS
When program ask you to enter operation, type "^", then press Enter.
Then type argument
.B x
and degree
.B n
separated by space and press Enter again.
.B n
must be natural or 0, but less than 2147483647.
.RE
2.Function
.B factorial.
.RS
When program ask you to enter operation, type "!", then press Enter.
Then type argument
.B x
and press Enter.
.B x
must be natural.
.RE
3.Function 
.B modul.
.RS
When program ask you to enter operation, type "a", then press Enter.
Then type argument
.B x
and press Enter.
.RE
.SH EXAMPLES
1.Calculating 34.5^3
.RS
.nf
Enter operation <'^','!','e'>
^
Enter arguments
34.5 3
f(x)=41063.6
.fi
.RE
2.Calculating 10!
.RS
.nf
Enter operation <'^','!','e'>
!
Enter argument
10
f(x)=3628800
.fi
.RE
3.Calculating |-673.56|
.RS
.nf
Enter operation <'^','!','a'>
a
Enter argument
-673.56
f(x)=673.56
.fi
.RE
.SH DIAGNOSTICS
Invalid operation.
.RS
Entered operation doesn't match with required.
.RE
.TP
Invalid argument(s).
Arguments was entered in wrong format or their value out of required range.
.SH AUTHOR
Pechnikov Dmitry <dsp.aka.pal@gmail.com>